using System;
using System.Text.RegularExpressions;

namespace System72.NTextile.RegexLibrary
{
    public class LinkRegex:BaseRegex
    {
        public LinkRegex()
        {
            string pattern = String.Format(@"{0}((?>[^{0}]+|{0}(?<depth>)|{0}(?<-depth>))*(?(depth)(?!))){0}{1}", "\"", @"[:]([^\s][-a-z0-9_:@&?=+,.!/~*'%$]+)"); 
            m_regex = new Regex(pattern);
        }
    }
}
